#include <iostream>

using namespace std;

template<typename A, typename B>
auto add(A a, B b) -> decltype(a+b)
{
    return a+b;
}

int main()
{
    int a = 5;
    double b = 6.5;
    cout<<add(a,b)<<endl;
}